home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / util / rexx / ole1v10a.lha / OLE_System / Install_OLE < prev    next >
Encoding:
Text File  |  1995-02-10  |  7.5 KB  |  451 lines

  1. ;
  2. ; Install-OLE
  3. ;
  4. ; The OLE system installation script.
  5. ;
  6. ; HISTORY:
  7. ; 1.08    copy GetPubName
  8. ;
  9. ; $(C): (1994, Rocco Coluccelli, Bologna)
  10. ; $VER: Install-OLE 1.13 (10.Feb.1995)
  11. ;
  12.  
  13.  
  14. ;
  15. ;    english
  16. ;
  17.     (set þBAD_KICK
  18.         "\nYou must have Kickstart 2.04 or higher installed to use the OLE System.\n"
  19.     )
  20.  
  21.     (set þWELCOME
  22.         (cat
  23.             "\n\nThe OLE System\n\n\n"
  24.             "This script installs the version 1.10a\n"
  25.             "of the OLE System on your Amiga.\n\n\n\n"
  26.             "The OLE System © 1994 Rocco Coluccelli\n"
  27.             "All rights reserved"
  28.         )
  29.     )
  30.  
  31.     (set þASK_OLE_DIR
  32.         (cat
  33.             "In which disk or drawer should a drawer \"OLE_System\" "
  34.             "be created where all usefull files will be copied?"
  35.         )
  36.     )
  37.  
  38.     (set þASK_OLE_DIR_HELP
  39.         (cat
  40.             "Here you specify, where you want to install all OLE System "
  41.             "support files. A drawer \"OLE_System\" will "
  42.             "be created, so you select \"SYS:\" to install OLE System "
  43.             "in a drawer \"SYS:OLE_System\".\n\n"
  44.         )
  45.     )
  46.  
  47.     (set þASK_MOD_DIR
  48.         (cat
  49.             "In which disk or drawer should a drawer \"OLE\" "
  50.             "be created where all modules files will be copied?"
  51.         )
  52.     )
  53.  
  54.     (set þASK_MOD_DIR_HELP
  55.         (cat
  56.             "Here you specify, where you want to install all OLE System "
  57.             "modules. A drawer \"OLE\" will "
  58.             "be created, so you select \"REXX:\" to install OLE System "
  59.             "in a drawer \"REXX:OLE\".\n\n"
  60.         )
  61.     )
  62.  
  63.     (set þASK_FW
  64.         "\nInstall OLE modules for Final Writer?\n"
  65.     )
  66.  
  67.     (set þASK_FW_DIR
  68.         "\nDestination for Final Writer scripts\n"
  69.     )
  70.  
  71.     (set þASK_FW_DIR_HELP
  72.         (cat
  73.             "Select the path for copying the startup-scripts for Final Writer.\n"
  74.             "Read the OLE documentation for more informations.\n\n"
  75.         )
  76.     )
  77.  
  78.     (set þASK_PCALC
  79.         "\nDestination for Professional Calc scripts\n"
  80.     )
  81.  
  82.     (set þASK_PCALC_HELP
  83.         (cat
  84.             "Select the path where you want copy the scripts for ProCalc.\n"
  85.             "Read the OLE documentation for more informations.\n\n"
  86.         )
  87.     )
  88.  
  89.     (set þCOPY_LIBS
  90.         "\nCopy the ARexx libraries in LIBS:\n"
  91.     )
  92.  
  93.     (set þCOPY_LIBS_HELP
  94.         (cat
  95.             "The OLE System use some ARexx libraries and you have to copy "
  96.             "them into your LIBS: drawer.\n\n"
  97.         )
  98.     )
  99.  
  100.     (set þWORKING1
  101.         "\nWell, let's install...\n"
  102.     )
  103.  
  104.     (set þSTARTUP
  105.         "\nAdd a few lines to User-Startup\n"
  106.     )
  107.  
  108.     (set þSTARTUP_HELP
  109.         (cat
  110.             "The OLE System use the \"OLE:\" assignement and "
  111.             "need the \"PIPE:\" device mounted for any script.\n"
  112.             "This part of the installation add the necessary "
  113.             "commands to your \"User-Startup\" file.\n\n"
  114.         )
  115.     )
  116.  
  117. ;
  118. ;    italiano
  119. ;
  120. (if (= @language "italiano")
  121. (
  122.     (set þBAD_KICK
  123.         (cat
  124.             "\nOLE System richiede il Kickstart 2.04 "
  125.             "o superiore per funzionare.\n"
  126.         )
  127.     )
  128.  
  129.     (set þWELCOME
  130.         (cat
  131.             "\n\nThe OLE System\n\n\n"
  132.             "Questo script installa la versione 1.10a\n"
  133.             "di OLE System sul tuo Amiga.\n\n\n\n"
  134.             "The OLE System © 1994 Rocco Coluccelli\n"
  135.             "Tutti i diritti sono riservati"
  136.         )
  137.     )
  138.  
  139.     (set þASK_OLE_DIR
  140.         (cat
  141.             "In quale disco o cassetto vorresti che fosse creata la directory \"OLE_System\" "
  142.             "che ospiterà tutti i file necessari a OLE System?"
  143.         )
  144.     )
  145.  
  146.     (set þASK_OLE_DIR_HELP
  147.         (cat
  148.             "Qui devi specificare dove vuoi che vengano copiati tutti "
  149.             "i files di supporto necessari a costruire OLE System. "
  150.             "Un nuovo cassetto \"OLE_System\" sarà creato nel posto da te scelto per "
  151.             "accogliere tutti i files necessari.\n\n"
  152.         )
  153.     )
  154.  
  155.     (set þASK_MOD_DIR
  156.         (cat
  157.             "In quale disco o cassetto vuoi che venga creata la directory \"OLE\" "
  158.             "che accogliera` tutti i moduli?"
  159.         )
  160.     )
  161.  
  162.     (set þASK_MOD_DIR_HELP
  163.         (cat
  164.             "Qui devi scegliere dove installare i moduli di OLE System. "
  165.             "Un cassetto \"OLE\" verrà creato così che, scegliendo"
  166.             " \"REXX:\" tutti i moduli verranno copiati nel cassetto "
  167.             " \"REXX:OLE\".\n\n"
  168.         )
  169.     )
  170.  
  171.     (set þASK_FW
  172.         "\nInstalli i moduli OLE per Final Writer?\n"
  173.     )
  174.  
  175.     (set þASK_FW_DIR
  176.         "\nDestinazione per gli script di Final Writer\n"
  177.     )
  178.  
  179.     (set þASK_FW_DIR_HELP
  180.         (cat
  181.             "Scegli dove vuoi copiare gli startup-script per Final Writer.\n"
  182.             "Leggi la documentazione che accompagna OLE System "
  183.             "per maggiori informazioni.\n\n"
  184.         )
  185.     )
  186.  
  187.     (set þASK_PCALC
  188.         "\nDestinazione per gli script di Professional Calc\n"
  189.     )
  190.  
  191.     (set þASK_PCALC_HELP
  192.         (cat
  193.             "Scegli dove vuoi che vengano copiati gli script per ProCalc.\n"
  194.             "Leggi la documentazione che accompagna OLE System "
  195.             "per maggiori informazioni.\n\n"
  196.         )
  197.     )
  198.  
  199.     (set þCOPY_LIBS
  200.         "\nDevo copiare alcune librerie ARexx LIBS:\n"
  201.     )
  202.  
  203.     (set þCOPY_LIBS_HELP
  204.         (cat
  205.             "OLE System fa uso di alcune librerie ARexx che devono necessariamente"
  206.             "essere copiate nel cassetto LIBS:\n"
  207.             "Nel caso in cui siano già presenti, verranno aggiornate.\n\n"
  208.         )
  209.     )
  210.  
  211.     (set þWORKING1
  212.         "\nProcedo con la installazione...\n"
  213.     )
  214.  
  215.     (set þSTARTUP
  216.         "\nDevo aggiungere alcune linee all User-Startup\n"
  217.     )
  218.  
  219.     (set þSTARTUP_HELP
  220.         (cat
  221.             "OLE System utilizza l'assegnamento \"OLE:\" per riferirsi "
  222.             "a tutti i suoi moduli. Alcuni script usano PIPE: per lo "
  223.             "scambio dei dati\n."
  224.             "Ora verranno aggiunti i comandi necessari alla \"User-Startup\".\n\n"
  225.         )
  226.     )
  227. ))
  228.  
  229.  
  230.  
  231. ;
  232. ; make sure we are running under a 2.04 ROM or higher
  233. ;
  234. (if (< (/ (getversion) 65536) 37)
  235.     (abort þBAD_KICK)
  236. )
  237.  
  238. (complete 0)
  239. (message þWELCOME)
  240. (welcome)
  241.  
  242.  
  243. ;
  244. ;    ask for destination drawers or partitions for OLE files etc.
  245. ;
  246. (set OLE_DIR
  247.     (tackon
  248.         (askdir
  249.             (prompt þASK_OLE_DIR)
  250.             (help
  251.                 þASK_OLE_DIR_HELP
  252.                 @askdir-help
  253.             )
  254.             (default "Work:")
  255.         )
  256.         "OLE_System"
  257.     )
  258. )
  259.  
  260. (set @default-dest OLE_DIR)
  261.  
  262. (set OLE_MOD
  263.     (tackon
  264.         (askdir
  265.             (prompt þASK_MOD_DIR)
  266.             (help
  267.                 þASK_MOD_DIR_HELP
  268.                 @askdir-help
  269.             )
  270.             (default "REXX:")
  271.         )
  272.         "OLE"
  273.     )
  274. )
  275.  
  276. ;
  277. ;    Final Writer modules
  278. ;
  279. (set FW
  280.     (askchoice
  281.         (prompt þASK_FW)
  282.         (help "")
  283.         (choices "Skip" "FinalWriter Release 2" "FinalWriter Release 3")
  284.     )
  285. )
  286.  
  287. (if (> FW 0)
  288.     (set FW_dest
  289.         (askdir
  290.             (prompt þASK_FW_DIR)
  291.             (default "REXX:")
  292.             (help þASK_FW_DIR_HELP)
  293.         )
  294.     )
  295. )
  296.  
  297. ;
  298. ;    ProCalc modules
  299. ;
  300. ;(set PCALC_dest
  301. ;    (askdir
  302. ;        (prompt þASK_PCALC)
  303. ;        (default "REXX:")
  304. ;        (help þASK_PCALC_HELP)
  305. ;    )
  306. ;)
  307.  
  308. ;
  309. ;    inform the user...
  310. ;
  311. (working þWORKING1)
  312.  
  313. ;
  314. ;    install libraries
  315. ;
  316. (foreach "libs" "#?.library"
  317.     (copylib
  318.         (prompt þCOPY_LIBS)
  319.         (help þCOPY_LIBS_HELP)
  320.         (source (tackon "libs" @each-name))
  321.         (dest "LIBS:")
  322.     )
  323. )
  324. (run "Avail >NIL: FLUSH")
  325. (complete 10)
  326.  
  327. ;
  328. ;    OLE server and support files
  329. ;
  330. (copyfiles
  331.     (source "server")
  332.     (dest "REXX:")
  333.     (all)
  334. )
  335.  
  336. ;
  337. ;    misc, catalogs, help, standard modules...
  338. ;
  339. (if (not (exists OLE_MOD))
  340.     (makedir OLE_MOD)
  341. )
  342.  
  343. (copyfiles
  344.     (source "ole")
  345.     (dest OLE_MOD)
  346.     (all)
  347. )
  348.  
  349. (makeassign "OLE" OLE_MOD)
  350.  
  351. ;
  352. ;    the OLE System drawer
  353. ;
  354. (if (not (exists OLE_DIR))
  355.     (
  356.         (makedir OLE_DIR)
  357.     )
  358. )
  359.  
  360. (copyfiles
  361.     (source "drawer-info")
  362.     (dest (cat OLE_DIR "//"))
  363.     (newname "OLE_System.info")
  364. )
  365.  
  366. (copyfiles
  367.     (source "rexx")
  368.     (dest (cat OLE_DIR "/rexx"))
  369.     (all)
  370. )
  371.  
  372. (copyfiles
  373.     (source "8svx")
  374.     (dest (cat OLE_DIR "/8svx"))
  375.     (all)
  376. )
  377.  
  378. (copyfiles
  379.     (source "iff")
  380.     (dest (cat OLE_DIR "/iff"))
  381.     (all)
  382. )
  383.  
  384. (copyfiles
  385.     (source "help")
  386.     (dest (cat OLE_DIR "/help"))
  387.     (all)
  388. )
  389.  
  390. (copyfiles
  391.     (source "")
  392.     (dest OLE_DIR)
  393.     (choices "OLE.guide" "Presentation")
  394.     (infos)
  395. )
  396.  
  397. (copyfiles
  398.     (source "Switch")
  399.     (dest OLE_DIR)
  400. )
  401.  
  402. (copyfiles
  403.     (source "Switch-info")
  404.     (dest OLE_DIR)
  405.     (newname "Switch.info")
  406. )
  407.  
  408. (complete 30)
  409.  
  410. ;
  411. ;    install FinalWriter modules
  412. ;
  413. (if (> FW 0)
  414.     ((copyfiles
  415.         (source "modules/fw_st")
  416.         (dest FW_dest)
  417.         (all)
  418.     )
  419.     (copyfiles
  420.         (source "modules/fw3")
  421.         (dest OLE_MOD)
  422.         (all)
  423.     )
  424.     (if (= FW 1)
  425.         (copyfiles
  426.             (source "modules/fw2")
  427.             (dest OLE_MOD)
  428.             (all)
  429.         )
  430.     ))
  431. )
  432.  
  433. (complete 90)
  434.  
  435. ;
  436. ;    update the user-startup
  437. ;
  438. (startup "OLE System"
  439.     (prompt þSTARTUP)
  440.     (help þSTARTUP_HELP)
  441.     (command
  442.         "Assign OLE: \"" OLE_MOD "\"\n"
  443.         "Assign >NIL: PIPE: EXISTS\n"
  444.         "If WARN\n"
  445.         "    Mount PIPE:\n"
  446.         "EndIf\n"
  447.     )
  448. )
  449. (complete 100)
  450. (exit)
  451.